package com.fg.pro.trade.entity;

import java.util.Date;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * 供应商(TradeSupplier)表实体类
 *
 * @author makejava
 * @since 2025-08-25 10:40:54
 */
@SuppressWarnings("serial")
@Data
public class TradeSupplier extends Model<TradeSupplier> {
//主键
    private Long id;

    private Date createTime;

    private Date updateTime;
//公司id
    private Long supplierGroupId;
//供应商名称
    private String supplierName;
//账期计算方式 1：按照授信额度 3：日结 4：周结 5：月结 6：自定义 8：半月结
    private Integer supplierCreditType;
//供应商自定义编码（供应商编号）
    private String supplierCustomizedCode;
//发票类型- 0：默认或者不开具发票 1：增值税普通发票 2：增值税专用发票
    private Integer supplierInvoiceType;
//开户银行名称
    private String supplierBankName;
//开户银行账号
    private String supplierBankAccount;
//发货仓库id
    private Long warehouseId;
//关联的下游group id
    private Long supplierRelationGroupId;
//供应商类型 0：无 1：普通供应商 2：默认供应商
    private Integer supplierType;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getSupplierGroupId() {
        return supplierGroupId;
    }

    public void setSupplierGroupId(Long supplierGroupId) {
        this.supplierGroupId = supplierGroupId;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public Integer getSupplierCreditType() {
        return supplierCreditType;
    }

    public void setSupplierCreditType(Integer supplierCreditType) {
        this.supplierCreditType = supplierCreditType;
    }

    public String getSupplierCustomizedCode() {
        return supplierCustomizedCode;
    }

    public void setSupplierCustomizedCode(String supplierCustomizedCode) {
        this.supplierCustomizedCode = supplierCustomizedCode;
    }

    public Integer getSupplierInvoiceType() {
        return supplierInvoiceType;
    }

    public void setSupplierInvoiceType(Integer supplierInvoiceType) {
        this.supplierInvoiceType = supplierInvoiceType;
    }

    public String getSupplierBankName() {
        return supplierBankName;
    }

    public void setSupplierBankName(String supplierBankName) {
        this.supplierBankName = supplierBankName;
    }

    public String getSupplierBankAccount() {
        return supplierBankAccount;
    }

    public void setSupplierBankAccount(String supplierBankAccount) {
        this.supplierBankAccount = supplierBankAccount;
    }

    public Long getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Long warehouseId) {
        this.warehouseId = warehouseId;
    }

    public Long getSupplierRelationGroupId() {
        return supplierRelationGroupId;
    }

    public void setSupplierRelationGroupId(Long supplierRelationGroupId) {
        this.supplierRelationGroupId = supplierRelationGroupId;
    }

    public Integer getSupplierType() {
        return supplierType;
    }

    public void setSupplierType(Integer supplierType) {
        this.supplierType = supplierType;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
}

